package cn.itsource.org.service;

import cn.itsource.basic.service.IBaseService;
import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 部门表的业务层
 */
public interface IDepartmentService extends IBaseService<Department,DepartmentQuery> {


    /**
     * 查询上级部门
     */
    List<Department> findParentDepts();

    /**
     * 选择上级部门
     */
    List<Department> treeList();
}
